package com.hl.sfzy.mapper.wxwappMapper;

import com.hl.sfzy.entity.wxwapp.ArticleDetail;
import com.hl.sfzy.entity.wxwapp.CourseOnline;
import com.hl.sfzy.entity.wxwapp.TeacherDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 14821
* @description 针对表【teacher(咨询师表，存储所有咨询师信息)】的数据库操作Mapper
* @createDate 2024-09-07 10:18:45
* @Entity com.hl.sfzy.entity.wxwapp.TeacherDetail
*/
@Repository
public interface TeacherDetailMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TeacherDetail record);

    int insertSelective(TeacherDetail record);

    TeacherDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TeacherDetail record);

    int updateByPrimaryKey(TeacherDetail record);

    //查询咨询师详情所需要的信息
    TeacherDetail selectAllHaveDetail(Long id);
    //查询精选文章（前三个）
    List<ArticleDetail> selectArticles(long id);
    //查询课程（前三个）
    List<CourseOnline> selectCourses(long id);

}
